package cl.smartdev.soagov.model;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class IntegrationNode {

    /**
     */
    @Size(min = 0)
    @OneToMany(cascade = CascadeType.ALL,mappedBy = "integrationNode")
    private Set<IntegrationServer> integrationServers = new HashSet<IntegrationServer>();

    /**
     */
    @NotNull
    private String name;
}
